<?php
require_once 'cc.php';


$uid = $_REQUEST['id'];

$sql = "DELETE FROM userinfo WHERE id =$uid";

mysqli_query($conn,$sql);

$rows = mysqli_affected_rows($conn);

$obj = array(
    'code'=>0,
    'msg'=>'失败',
);

if($rows>0){
  
$obj = array(
    'code'=>1,
    'msg'=>'成功',
);
}

echo json_encode($obj);